/*

Copyright 2007 Renaun Erickson (http://renaun.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@ignore
*/
package asfslib.api.familytree.v1
{
	
import mx.collections.ArrayCollection;
	
	
/**
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="personSummaryBase">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="gender" type="{http://api.familysearch.org/familytree/v1}genderType" minOccurs="0"/>
 *         &lt;element name="events" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="event" type="{http://api.familysearch.org/familytree/v1}eventSummary" maxOccurs="unbounded" minOccurs="0"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
public class PersonSummaryBase 
{

    //----------------------------------
    //  name
    //----------------------------------

    /**
     *  @private
     *  Storage for the name property.
     */
    private var _name:String = "";

    /**
     *  The name property
     *
     *  @default  = ""
     */
    public function get name():String
    {
        return _name;
    }

    /**
     *  @private
     */
    public function set name(value:String):void
    {
        _name = value;
    }


    //----------------------------------
    //  gender
    //----------------------------------

    /**
     *  @private
     *  Storage for the gender property.
     */
    private var _gender:String = GenderType.UNKNOWN;

    /**
     *  The gender property
     *
     *  @default  = ""
     */
    public function get gender():String
    {
        return _gender;
    }

    /**
     *  @private
     */
    public function set gender(value:String):void
    {
        _gender = value;
    }


    //----------------------------------
    //  events
    //----------------------------------

    /**
     *  @private
     *  Storage for the events property.
     */
    private var _events:ArrayCollection;

    /**
     *  The events property
     *
     *  @default 
     */
    public function get events():ArrayCollection
    {
        return _events;
    }

    /**
     *  @private
     */
    public function set events(value:ArrayCollection):void
    {
        _events = value;
    }
    
    /**
     * 	
     */
    public function toString():String
    {
    	return name;
    }

}
}
